package com.javasm.aftersales.dao;

import com.javasm.aftersales.Repair;
import com.javasm.aftersales.RepairType;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Collection;
import java.util.List;

/**
 * @author:Dai
 * @className:RepairDao
 * @description:     维修点管理
 * @date:2022/9/23 10:26
 * @version: 1.0
 * @since: jdk11
 */
@Component
public interface RepairDao {

 String getRepVal(Repair repair);//根据城市查出城市的编号,再把查到的编号放到repair的city里

 //获得最大的子id
 String getMaxId(String pid);
 Collection<RepairType> getTree();
 List <Repair> getList(Repair repair);
 List <Repair> selectAll(Repair repair);
 Integer insertRep(Repair repair);
 Integer updateRep(Repair repair);
 Integer deleteRep(Integer id);
 Integer deleteReps(@Param("id")List<Integer> id);


}
